function [Vl]=loadAllocate(Vin)
%LOADALLOCATE A function that allocate consumer location points with random loads.
%	used by Substation Locations
%	Allocate the third column of Vin with randomn numbers 
%	FURTHER works need to be done: change the randomn outputs with realistic data
%	August 7 2014, Risoe Denmark, Qin Wang

if nargin==1
	sizetmp=size(Vin);
	if sizetmp(2)<=3
		for i=1:sizetmp(1)
			Vl(i,1)=Vin(i,1);
			Vl(i,2)=Vin(i,2);
			%Vl(i,3)=rand(1,1);			%This should be modified to fit the realistic data
			Vl(i,3)=1;	
		end
	else
		error('loadAllocate Error: Vin column>3');
	end	

else
	error('Wrong input numbers');
end  
